#include"SList.h"




void test1()
{
	SListNode* plist=NULL;
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPrint(plist);
	SListPushFront(&plist, 1);
	SListPushFront(&plist, 2);
	SListPrint(plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPrint(plist);
	SListPopFront(&plist);
	SListPopFront(&plist);
	SListPrint(plist);
	printf("\n\n\n");
}

void test2()
{
	SListNode* plist = NULL;
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);
	SListPushBack(&plist, 5);
	SListPrint(plist);
	printf("%d\n", SListFind(plist,2)->data);
	SListInsertAfter(plist, 10);
	SListPrint(plist);
	SListEraseAfter(plist);
	SListPrint(plist);
	SListDestory(plist);
	SListPrint(plist);
}


int main()
{

	test2();
	return 0;
}